package com.example.tongyao.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.example.tongyao.common.SuperEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
* <p>
* 用户角色关系表
* </p>
*
* @author tongyao
* @since 2020-06-13
*/
@Data
@EqualsAndHashCode(callSuper = true)
//@Accessors(chain = true)
@ApiModel(value="SysUserRole对象", description="用户角色关系表")
public class SysUserRole extends SuperEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value ="id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "用户编号")
    private String userId;

    @ApiModelProperty(value = "角色编号")
    private String roleId;


}
